{% extends 'base_login.html' %}
{% load i18n %}

{% block title %}
	<h2>{% trans "Edit Post" %}</h2>
{% endblock %}

{% block main %}
	
	<form name="form" method="post" action=".">
	
		{% if form.title.errors %}<div class="error">{{ form.title.errors|join:", " }}</div>{% endif %}
		<h4>{% trans "Title" %}:</h4>
		{{ form.title }}
		<br/>
		
		
		{% if form.body.errors %}<div class="error">{{ form.body.errors|join:", " }}</div>{% endif %}
		<h4>{% trans "Post" %}:</h4>
		{{ form.body }}	
		<br/>
	
		<br/>	
		<button type="submit" class="large awesome">{% trans "Save" %}</button>
		<a href="{% url blog_pages %}" class="link_cancel">{% trans "Or Cancel" %}</a>
	</form>

{% endblock %}

{% block menu %}
	{% include 'blog_pages/blog_menu.html' %}
{% endblock %}